import request from '@/utils/request'

// 查询指令执行日志列表
export function listExecution(query) {
  return request({
    url: '/kamenxian/rizhishenji/execution/list',
    method: 'get',
    params: query
  })
}

// 查询指令执行日志详细
export function getExecution(logId) {
  return request({
    url: '/kamenxian/rizhishenji/execution/' + logId,
    method: 'get'
  })
}

// 新增指令执行日志
export function addExecution(data) {
  return request({
    url: '/kamenxian/rizhishenji/execution',
    method: 'post',
    data: data
  })
}

// 修改指令执行日志
export function updateExecution(data) {
  return request({
    url: '/kamenxian/rizhishenji/execution',
    method: 'put',
    data: data
  })
}

// 删除指令执行日志
export function delExecution(logId) {
  return request({
    url: '/kamenxian/rizhishenji/execution/' + logId,
    method: 'delete'
  })
}
